﻿<!DOCTYPE html>
<html>
<meta http-equiv="X-UA-Compatible" content="IE=7">
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<head>
    <title>f4031</title>
    <%include file="TT/head.html"/>
    <script>
        $(function(){
            $("#id").val('${i.rec.get("id",0)}');
            $("#username").val('${i.rec.get("username","")}');
            $("#truename").val('${i.rec.get("truename","")}');
            $("#subincname").val('${i.rec.get("subincname","")}');
            $("#departmentname").val('${i.rec.get("departmentname","")}');
            $("#userpower").val('${i.rec.get("userpower",1)}');
        });
        function dosave(){
            var rv = {};
            $("[rel='v']").each(function(){
                rv[$(this).attr("id")]=$(this).val()
            });
            rv.userpower=$("#userpower").val()
            window.returnValue=rv
            window.close()
        }
    </script>
    <script>
    /**
     * 选择分公司和部门
     */
    function selectzz(){
        var v=showModal('/f20/f2000/list?act=org',480,272);
        $("#subincname").val(v.subincname);
        $("#departmentname").val(v.departmentname);

    }
</script>
</head>
<body>
<div class="main_padding">
    <div class="tool_tab">
        <ul>
            <li class="cur"><a href="">用户信息</a></li>
        </ul>
    </div>
    <div class="tool_table">
        <div class="button"><a href="#"onclick="dosave()" class="button_gray"><b class="icons icheck"></b>确认</a></div>
        <div class="button"><a href="#" onclick="window.close()" class="button_gray"><b class="icons iback"></b>返回</a></div>
    </div>
    <input type="hidden" name="act" value="save"/>
    <input type="hidden" name="id" rel="v" id="id" value=""/>
    <table class="table">
        <tbody>
        <tr>
            <td>用户名：</td><td><input type="text" id="username" rel="v" class="u_ipt_inner" name="username"/></td>
        </tr>
        %if i.act!="edit":#added by jy 2012-01-16
        <tr>
            <td>用户密码：</td><td><input type="password" rel="v" class="u_ipt_inner" id="userpwd" name="userpwd"/></td>
        </tr>
        %endif
        <tr>
            <td>姓名：</td><td><input type="text" rel="v" class="u_ipt_inner" id="truename" name="truename"/></td>
        </tr>
        
        <tr>
            <td>权限级别：</td><td><select id="userpower" rel="v" name="userpower">
            <optgroup label="功能与组织结构均限制">
                <option value="1">1级</option>
                <option value="2">2级</option>
                <option value="3">3级</option>
                <option value="4">4级</option>
            </optgroup>
            <optgroup label="功能不限组织结构限制">
                <option value="5">5级</option>
                <option value="6">6级</option>
                <option value="7">7级</option>
                <option value="8">8级</option>
            </optgroup>
            <optgroup label="不受限制级别">
                <option value="9">9级</option>
            </optgroup>
        </select></td>
        </tr>
        </tbody>
    </table>
    <script type="text/javascript" src="/static/skins_/js/settings.js"></script>
</div>
</body>
</html>
